﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace XbdSoft.Domain
{
    [DataContract]
    [Table("Special")]
    public class AudioCategory
    {
        public AudioCategory()
        {
            AudioResources = new List<AudioResource>();
        }

        [DataMember]
        [Column("SpecialID")]
        public int ID { get; set; }

        [DataMember]
        [Column("SpecialName")]
        public string Name { get; set; }

        [DataMember]
        [Column("ReadMe")]
        public string Description { get; set; }

        [DataMember]
        [Column("OrderID")]
        public int Order { get; set; }

        [DataMember]
        [Column("tjflag")]
        public int TjFlag { get; set; } 

        [DataMember]
        [InverseProperty("AudioCategory")]
        public List<AudioResource> AudioResources { get; set; }
    }
}
